package com.qf.commerce.service;


import com.github.pagehelper.PageInfo;
import com.qf.commerce.common.dto.AccountDto;
import com.qf.commerce.common.dto.AccountDto2;
import com.qf.commerce.common.vo.AccountVo;
import com.qf.commerce.entity.Account;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccountService {


    //增
    int add(AccountDto accountDto);

    int delete(List<Long> ids);

    int updateAccount(Long accountId,Account account);
    int updateRole(Long organizationId,Long roleId,Long accountId);
    int updatePassword(String accountPassword,Long accountId);


    List<AccountDto> selectAccountDetail(Long accountId);
    PageInfo<AccountVo> selectAccount(String organizationName,Integer status,String accountName,String userName,String roleName,Integer page, Integer size);



    //个人信息模块
    List<AccountDto2> selectPersonDetailById(@Param("accountId")Long accountId);
    int updatePersonDetailById(@Param("accountId")Long accountId,@Param("account")Account account);

}

